package com.study.mike.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author KangHui
 * @Date 2022/8/5 15:39
 */
@TableName("user_role")
@Data
public class UserRole {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 资源id
     */
    @TableField(value = "role_id")
    private Long roleId;

    /**
     * 是否拥有
     */
    @TableField(value = "enable")
    private Integer enable;
}
